package main

import (
	"database/sql"
	"fmt"
	"github.com/yourusername/gox/pkg/runtime"
)

func TestNewSyntax(db *sql.DB) {
	query1 := func() *runtime.Query {
		__gox_sql_1_builder := runtime.NewQueryBuilder()
		__gox_sql_1_builder.AddText("SELECT * FROM users WHERE id =")
		__gox_sql_1_builder.AddParam(123)
		__gox_sql_1 := __gox_sql_1_builder.Build()
		return __gox_sql_1
	}()

	userID := 456
	query2 := func() *runtime.Query {
		__gox_sql_0_builder := runtime.NewQueryBuilder()
		__gox_sql_0_builder.AddText("SELECT * FROM orders WHERE user_id =")
		__gox_sql_0_builder.AddParam(userID)
		__gox_sql_0 := __gox_sql_0_builder.Build()
		return __gox_sql_0
	}()

	fmt.Println("Query 1:", query1.String())
	fmt.Println("Query 2:", query2.String())
}

func main() {
	fmt.Println("Testing")
	TestNewSyntax(nil)
}
